package com.qf.common.neo4j.node;

import lombok.Data;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Relationship;

import java.util.ArrayList;
import java.util.List;

/**
 * 天--道--酬--勤
 *
 * @author LiangGaoQiang
 * @ClassName UserNode
 * @Date: 2025/5/27 11:00
 * @Description: 描述
 */
@Node(labels = "User")
@Data
public class UserNode {
    private Integer id;

    private String name;

    @Relationship(type = "INVITE", direction = Relationship.Direction.OUTGOING)
    private List<InviteShip> inviteShips = new ArrayList<>();
}
